package com.example.administrator.smarthome_androids;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Generated;

/**
 * Created by Administrator on 2017/6/22 0022.
 */
@Entity
public class DeviceInfo {
   @Id
    Long id;
    String name;//设备名字
    String room;//设备所在房间
    String on_off;//设备所配置的开关

   @Override
   public String toString() {
      return "DeviceInfo{" +
              "id=" + id +
              ", name='" + name + '\'' +
              ", room='" + room + '\'' +
              ", on_off='" + on_off + '\'' +
              '}';
   }

   public String getOn_off() {
      return this.on_off;
   }
   public void setOn_off(String on_off) {
      this.on_off = on_off;
   }
   public String getRoom() {
      return this.room;
   }
   public void setRoom(String room) {
      this.room = room;
   }
   public String getName() {
      return this.name;
   }
   public void setName(String name) {
      this.name = name;
   }
   public Long getId() {
      return this.id;
   }
   public void setId(Long id) {
      this.id = id;
   }
   @Generated(hash = 179511760)
   public DeviceInfo(Long id, String name, String room, String on_off) {
      this.id = id;
      this.name = name;
      this.room = room;
      this.on_off = on_off;
   }
   @Generated(hash = 2125166935)
   public DeviceInfo() {
   }


}
